package cc.fs.study;

import android.app.Application;

import java.io.IOException;

import cc.fs.study.hotfix.HotFix;

public class App extends Application{

    public static App instance;
    private HotFix hotFix;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        hotFix = new HotFix(this);
    }

    public void addPatch(String path) throws IOException {
        hotFix.addPatch(path);
    }

    public void cleanPatch(){
        hotFix.cleanPatch();
    }

}
